package com.yuantu.judiciary.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 案件简要信息
 *
 * @author syw
 * @since 2023-07-28
 **/
@Data
@ApiModel("案件简要信息")
public class CaseBriefDTO {
    @ApiModelProperty("案件数量")
    private Integer caseNum;
    @ApiModelProperty("未结案数量")
    private Integer notCloseNum;
    @ApiModelProperty("已结案数量")
    private Integer closeNum;
    @ApiModelProperty("未结案主诉")
    private Integer notCloseActiveNum;
    @ApiModelProperty("未结案被诉")
    private Integer notClosePassiveNum;
    @ApiModelProperty("已结案主诉")
    private Integer closeActiveNum;
    @ApiModelProperty("已结案被诉")
    private Integer closePassiveNum;

    public CaseBriefDTO(Integer caseNum, Integer notCloseNum, Integer closeNum) {
        this.caseNum = caseNum;
        this.notCloseNum = notCloseNum;
        this.closeNum = closeNum;
    }

    public CaseBriefDTO(CaseNumDTO data) {
        this.caseNum = data.getTotal();
        this.notCloseNum = data.getNotClose();
        this.closeNum = data.getClose();
    }
}
